package com.xncoding.design.proAcus.demo1;
/**
 * 手写观察模式 
 */
public class Main {
	public static void main(String[] args) {
		user1 user1 = new user1();
		user2 user2 = new user2();
		user3 user3 = new user3();
		
		subject sub = new subject();
		sub.addUser(user1);
		sub.addUser(user2);
		sub.addUser(user3);
		
		sub.dataChange("123");
	}
}
